package shuffle;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:周次煜
 * Date: 2024-03-24
 * Time：15:30
 */

public class TestCard {

    public static void main(String[] args) {
        Cards cards=new Cards();

        System.out.println("=====洗牌前========");
        // 创造一组棋牌
        List<Card> CardList=cards.createCards();

        System.out.println(CardList);

        System.out.println("======洗牌后======");
        // 洗掉棋牌

        cards.shuffle(CardList);
        System.out.println(CardList);


        System.out.println("=====分牌后=======");
        // 分牌之后



        List<Card> card1=cards.getCard(CardList);

        System.out.println("你得到的牌为："+card1);



//        List<Card> card2=cards.getCard(CardList);
//        System.out.println(card2);


//        cards.getCard(CardList);

    }
}
